package com.nf.action;

import com.nf.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class TestAtion {
    @Autowired
    private TestService testService;

    @RequestMapping("/abc")
    public String xxx(Model model,int account){
        System.out.println(account);
        model.addAttribute("kkk",testService.testMessage(account));
        System.out.println(testService.testMessage(account));
        return "a1";
    }

//    @RequestMapping("/abc")
//    public String xxx(Model model,int zz){
//        return "a1";
//    }
}
